#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>
typedef unsigned int uint;

int main()
{

	double r = 0;
	double n = 0;

	scanf("%lf%lf", &r, &n);
	printf("%.3f", pow(r+1, n));

}